package com.muyu.danmo.domain;

import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 社区点赞表 danmo_community_like
 *
 * @author : kunzong
 * @date : 2024-11-19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DanmoCommunityLike extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 社区点赞ID
     */
    @Excel(name = "社区点赞ID")
    private Long id;

    /**
     * 点赞用户ID
     */
    @Excel(name = "点赞用户ID")
    private Long userId;

    /**
     * 点赞帖子ID
     */
    @Excel(name = "点赞帖子ID")
    private Long postId;

    /**
     * 点赞时间
     */
    @Excel(name = "点赞时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;

    /**
     * 点赞人
     */
    @Excel(name = "点赞人")
    private String createBy;

    private String likeName;

    private Integer pageNum = 1;
    private Integer pageSize = 10;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("postId", getPostId())
                .append("createdTime", getCreatedTime())
                .append("createBy", getCreateBy())
                .toString();
    }
}